﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="MemberList.aspx.cs" Inherits="Admin_MemberList" %>

<%@ Register Assembly="Fetco.Framework" Namespace="FetCo.Web.UI.WebControls" TagPrefix="FetCo" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="titlePlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <%--<asp:UpdatePanel runat="server">
        <contenttemplate>--%>
    <%--  <div style="padding: 12px 12px 12px 12px;">
        <div style="padding-bottom: 12px;">
            <div class="title">
                <strong>Tìm Kiếm: </strong>
            </div>
            <table border="0" style="width: 100%;" cellpadding="1" cellspacing="0">
                <tr>
                    <td class="listtableheader">
                        Họ tên:
                    </td>
                    <td class="listtableheader">
                        <asp:TextBox ID="txtemail" runat="server" Width="220"></asp:TextBox></td>
                    <td class="listtableheader">
                        Tên của bé:
                    </td>
                    <td class="listtableheader">
                        <asp:TextBox ID="txtfullname" runat="server" Width="220px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <table width="100%">
                <tr>
                    <td style="padding-left: 100px">
                    </td>
                    <td>
                        <asp:ImageButton ID="btnSearch" runat="server" BorderWidth="0" ImageUrl="~/Admin/images/search.jpg"
                            OnClick="btnSearch_OnClick" Style="background-color: transparent" />
                        ||
                        <asp:LinkButton ID="btnSearchAll" runat="server" CausesValidation="false" CssClass="blue"
                            OnClick="btnSearchAll_OnClick"><%=Utilitys.Dictionary["ShowAll"]%></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Literal ID="lb_error" runat="server"></asp:Literal></div>
        <div id="div_Show" runat="server">
            <div class="addnewrow">
                <asp:LinkButton ID="btnDelete" runat="Server" CausesValidation="false" OnClick="btnDelete_Click"
                    OnClientClick="javascript: return confirm('Bạn có chắc là muốn xóa dòng này?');"><%=Utilitys.Dictionary["DeleteSeletedRows"]%></asp:LinkButton>
            </div>
            <div>
                <FetCo:Repeater ID="rpt_BannerList" runat="server" OnItemCommand="rpt_BannerList_ItemCommand"
                    OnItemDataBound="rpt_BannerList_ItemDataBound">
                    <HeaderTemplate>
                        <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                            <thead>
                                <tr class="listtableheader">
                                    <th style="width: 5em;" class="listtableheader">
                                        <asp:Label ID="Literal1" runat="server"><%=Utilitys.Dictionary["No"] %></asp:Label></th>
                                    <th style="min-width: 85px; text-align: center" class="listtableheader">
                                        <asp:LinkButton ID="lbtnSort" ToolTip="Click here to sort this list" runat="Server"
                                            CommandArgument="sort" CommandName="em">Họ tên</asp:LinkButton></th>
                                    <th style="width: 80px; text-align: center" class="listtableheader">
                                        <asp:LinkButton ID="LinkButton1" runat="Server" CommandArgument="sort" CommandName="htt">Email</asp:LinkButton></th>
                                    <th style="text-align: center" class="listtableheader">
                                        <asp:LinkButton ID="LinkButton2" runat="Server" CommandArgument="sort" CommandName="yahoo">Tỉnh Thành</asp:LinkButton></th>
                                    <th style="text-align: center;" class="listtableheader">
                                        <asp:LinkButton ID="LinkButton4" runat="Server" CommandArgument="sort" CommandName="dt">Họ tên bé</asp:LinkButton></th>
                                   
                                    <th style="text-align: center" class="listtableheader">
                                        <asp:CheckBox ID="chkCheckAll" runat="server" onclick="CheckAll(this)" /></th>
                                </tr>
                            </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td style="width: 5em; text-align: center;">
                                <asp:Literal ID="litNo" runat="server">1</asp:Literal><input id="hidBanner" runat="server"
                                    type="hidden" /></td>
                            <td align="left">
                                <a href="Member.aspx?id=<%#Eval("MemberID") %>">
                                    <asp:Literal ID="ltrName" runat="server"></asp:Literal></a>
                            </td>
                            <td align="left" style="width: 80px;">
                                <a>
                                    <%# Eval("Email")%>
                                </a>
                            </td>
                            <td align="left">
                                <asp:Literal ID="ltrProvince" runat="server"></asp:Literal></td>
                            <td align="center" style="padding-top: 10px; padding-left: 8px;">
                                <asp:Literal ID="ltrNameBaby" runat="server"></asp:Literal>
                            </td>
                           
                            <td align="center">
                                <asp:CheckBox ID="chkBanner" runat="server" /></td>
                        </tr>
                    </ItemTemplate>
                    <NoneTemplate>
                        <tr>
                            <td align="center" colspan="10">
                                Chưa có dữ liệu</td>
                        </tr>
                    </NoneTemplate>
                    <FooterTemplate>
                        </tbody> </table>
                    </FooterTemplate>
                </FetCo:Repeater>
            </div>
            <div style="padding-top: 12px;" align="center">
                <cc1:PagerV2_8 ID="hyperlinkPager" runat="server" CompactModePageCount="5" GenerateFirstLastSection="true"
                    OnCommand="pager_Command" GeneratePagerInfoSection="false" GenerateSmartShortCuts="false"
                    GenerateHiddenHyperlinks="false" NormalModePageCount="5" />
            </div>
        </div>
       
    </div>--%>
    <div class="divcontent">
        <div class="search">
            <div class="cont">
                <div class="title" style="border-bottom: 1px solid #fff;">
                    <strong>Tìm Kiếm </strong>
                </div>
                <div class="box_content">
                    <ul>
                        <li>
                            <div style="width: 780px; height: 35px;">
                                <div class="divfirst" style="width: 50px;">
                                    Họ tên :</div>
                                <div class="divlast" style="width: 200px;">
                                   <asp:TextBox ID="txtemail" runat="server" Width="200"></asp:TextBox></div>
                                   <div class="divfirst" style="width: 70px;">
                                    Họ tên bé:</div>
                                <div class="divlast" style="width: 200px;">
                                   <asp:TextBox ID="txtfullname" runat="server" Width="200"></asp:TextBox></div>
                                <div style="width: 200px; margin-top: -5px; float: left;" class="divfirst">
                                    <asp:Button CssClass="bbutton" ID="btnSearch" OnClick="btnSearch_OnClick" runat="server"
                                        TabIndex="1" Text="Tìm Kiếm" ValidationGroup="b" />
                                    &nbsp;&nbsp;
                                    <asp:Button CssClass="bbutton" ID="btnSearchAll" OnClick="btnSearchAll_OnClick" runat="server"
                                        TabIndex="2" Text="Hiện Tất Cả" ValidationGroup="b"></asp:Button>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="display">
            <div class="control">
                <ul>
                    <li>
                        <img src="images/ar1.gif" /><asp:LinkButton ID="lbtDelete" CausesValidation="false"
                            CssClass="blue" OnClick="lbtDelete_Onclick" runat="server" OnClientClick="javascript: return confirm('Bạn có chắc là muốn xóa dòng này?');"><%=Utilitys.Dictionary["DeleteSeletedRows"]%></asp:LinkButton></li>
                </ul>
            </div>
            <div>
                <asp:Literal ID="lb_error" runat="server"></asp:Literal>
            </div>
            <div class="view">
                <FetCo:Repeater ID="rpt_BannerList" runat="server" OnItemCommand="rpt_BannerList_ItemCommand"
                    OnItemDataBound="rpt_BannerList_ItemDataBound">
                    <HeaderTemplate>
                        <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                            <thead>
                                <tr class="listtableheader">
                                    <th style="width: 5em;" class="listtableheader">
                                        <asp:Label ID="Literal1" runat="server"><%=Utilitys.Dictionary["No"] %></asp:Label></th>
                                    <th style="min-width: 85px; text-align: center" class="listtableheader">
                                        <asp:LinkButton ID="lbtnSort" ToolTip="Click here to sort this list" runat="Server"
                                            CommandArgument="sort" CommandName="em">Họ tên</asp:LinkButton></th>
                                    <th style="width: 80px; text-align: center" class="listtableheader">
                                        <asp:LinkButton ID="LinkButton1" runat="Server" CommandArgument="sort" CommandName="htt">Email</asp:LinkButton></th>
                                    <th style="text-align: center" class="listtableheader">
                                        <asp:LinkButton ID="LinkButton2" runat="Server" CommandArgument="sort" CommandName="yahoo">Tỉnh Thành</asp:LinkButton></th>
                                    <th style="text-align: center;" class="listtableheader">
                                        <asp:LinkButton ID="LinkButton4" runat="Server" CommandArgument="sort" CommandName="dt">Họ tên bé</asp:LinkButton></th>
                                   
                                    <th style="text-align: center" class="listtableheader">
                                        <asp:CheckBox ID="chkCheckAll" runat="server" onclick="CheckAll(this)" /></th>
                                </tr>
                            </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td style="width: 5em; text-align: center;">
                                <asp:Literal ID="litNo" runat="server">1</asp:Literal><input id="hidBanner" runat="server"
                                    type="hidden" /></td>
                            <td align="left">
                                <a href="Member.aspx?id=<%#Eval("MemberID") %>">
                                    <asp:Literal ID="ltrName" runat="server"></asp:Literal></a>
                            </td>
                            <td align="left" style="width: 80px;">
                                <a>
                                    <%# Eval("Email")%>
                                </a>
                            </td>
                            <td align="left">
                                <asp:Literal ID="ltrProvince" runat="server"></asp:Literal></td>
                            <td align="center" style="padding-top: 10px; padding-left: 8px;">
                                <asp:Literal ID="ltrNameBaby" runat="server"></asp:Literal>
                            </td>
                           
                            <td align="center">
                                <asp:CheckBox ID="chkBanner" runat="server" /></td>
                        </tr>
                    </ItemTemplate>
                    <NoneTemplate>
                        <tr>
                            <td align="center" colspan="10">
                                Chưa có dữ liệu</td>
                        </tr>
                    </NoneTemplate>
                    <FooterTemplate>
                        </tbody> </table>
                    </FooterTemplate>
                </FetCo:Repeater>
            </div>
        </div>
        <div style="padding-top: 12px;" align="center">
            <PagerV2:PagerV2_8 ID="hyperlinkPager" runat="server" CompactModePageCount="5" GenerateFirstLastSection="true"
                OnCommand="pager_Command" GeneratePagerInfoSection="false" GenerateSmartShortCuts="false"
                GenerateHiddenHyperlinks="false" NormalModePageCount="5" />
        </div>
        
    </div>

    <script type="text/javascript" language="javascript">
  
    function CheckAll(obj)
    {
        // find any item not check
        
        var countUncheck = 0;
        var checkAll = true;
        var checkList = document.getElementsByTagName("input");
            
		if(!obj.checked)
		    checkAll = false;
		for(var i = 0 ; i < checkList.length ; i++)
		{ 
			if(checkList[i].type == 'checkbox' && checkList[i].id.indexOf("chkBanner") >= 0 )
			{
				checkList[i].checked = checkAll;
			}
		}		
    }
   
    </script>

    <%-- </contenttemplate>
    </asp:UpdatePanel>--%>
</asp:Content>
